package com.ruoyi.oa.leave.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseBizEntity;

/**
 * 请假申请单对象 biz_oa_leave_info
 * 
 * @author qibotian
 * @date 2025-02-18
 */
@TableName("BIZ_OA_LEAVE_INFO")
public class LeaveInfo extends BaseBizEntity
{
	@TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 申请用户 */
    @Excel(name = "申请用户")
    private Long applyUserId;

    /** 申请用户名称 */
    @Excel(name = "申请用户名称")
    private String applyUserName;

    /** 申请天数 */
    @Excel(name = "申请天数")
    private Long applyDays;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 申请备注 */
    @Excel(name = "申请备注")
    private String memo;

    public void setApplyUserId(Long applyUserId) 
    {
        this.applyUserId = applyUserId;
    }

    public Long getApplyUserId() 
    {
        return applyUserId;
    }
    public void setApplyUserName(String applyUserName) 
    {
        this.applyUserName = applyUserName;
    }

    public String getApplyUserName() 
    {
        return applyUserName;
    }
    public void setApplyDays(Long applyDays) 
    {
        this.applyDays = applyDays;
    }

    public Long getApplyDays() 
    {
        return applyDays;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("title", getTitle())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("workflowStatus", getWorkflowStatus())
            .append("submitUserId", getSubmitUserId())
            .append("submitDeptId", getSubmitDeptId())
            .append("submitTime", getSubmitTime())
            .append("lastAuditTime", getLastAuditTime())
            .append("lastAuditUserId", getLastAuditUserId())
            .append("applyUserId", getApplyUserId())
            .append("applyUserName", getApplyUserName())
            .append("applyDays", getApplyDays())
            .append("beginTime", getBeginTime())
            .append("memo", getMemo())
            .toString();
    }
}
